<?php

namespace app\common\validate;

use think\Validate;
use think\Db;

class Order extends Validate {

    //定义验证规则
    protected $rule = [
        'userName|雇主姓名' => 'require',
        'workName|阿姨姓名'=>'require',
        'userMobile|雇主手机号'=>'require|number|max:11',
        'workMobile|阿姨手机号'=>'require|number|max:11',
        'startYear|开始日期'=>'require|number|max:4',
        'startMonth|开始日期'=>'require|number|max:2',
        'startDay|开始日期'=>'require|number|max:2',
        'endYear|结束日期'=>'require|number|max:4',
        'endMonth|结束日期'=>'require|number|max:2',
        'endDay|结束日期'=>'require|number|max:2',
        'totalAmount|价格'=>'require|number',
        'province|地址'=>'require',
        'city|地址'=>'require',
        'district|地址'=>'require',
        'userIDCards|雇主身份证'=>'require',
        'workerIDCards|阿姨身份证'=>'require',
       /* 'userSign|雇主签名'=>'require',
        'workSign|阿姨签名'=>'require',*/

    ];
    //定义验证提示
    protected $message = [
    ];


}
